package cn.wolfcode.wolf2w.vo;

import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
@ToString
@NoArgsConstructor
public class TravelCondition {
    public static final Map<Integer,TravelCondition> DAYTYPE_MAP = new HashMap<>();
    public static final Map<Integer,TravelCondition> PEREXPENDTYPE_MAP = new HashMap<>();

    static {
        DAYTYPE_MAP.put(1, new TravelCondition(1, 3));
        DAYTYPE_MAP.put(2, new TravelCondition(4, 7));
        DAYTYPE_MAP.put(3, new TravelCondition(8, 15));
        DAYTYPE_MAP.put(4, new TravelCondition(15, Integer.MAX_VALUE));

        PEREXPENDTYPE_MAP.put(1,new TravelCondition(1, 999));
        PEREXPENDTYPE_MAP.put(2,new TravelCondition(1000, 6000));
        PEREXPENDTYPE_MAP.put(3,new TravelCondition(6000, 200000));
        PEREXPENDTYPE_MAP.put(4,new TravelCondition(200000,10000000));
    }

    private int min;
    private int max;

    public TravelCondition(int min, int max){
        this.min = min;
        this.max = max;
    }
}
